package io;

import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
import java.nio.charset.StandardCharsets;

public class Test3 {
    public static void main(String[] args) throws IOException {
        FileOutputStream fos=new FileOutputStream("doo.txt");
        String str="我喜欢";
        byte[] a=str.getBytes(StandardCharsets.UTF_8);
        fos.write(a);
        System.out.println("xiewanle ");
        fos.close();
    }
}
